<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>唐客会</title>
<link rel="stylesheet" href="/images/2col_rightNav.css" type="text/css" />
<link href="/img/ggCSS.css" rel="stylesheet" type="text/css" />

<link rel="shortcut icon" href="/favicon.ico" />
<script src="http://api.mapabc.com/fmp/v1.0/js/fmp.js?key=d9026b1f289933f5c6312d30df7b9841a71a3e2eb5266aacb8babbd753b1595d3aa8631ddbb4656e" type="text/javascript"></script>
<script src="<?php echo SITE_URL?>js/jquery.js" type="text/javascript"></script>

<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

function search(){
	var type = $('#type').val();
	var keywords = $('#keywords').val();
	location.href = "/search/index?type="+type+"&keywords="+keywords;
}
</script>
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="33%" align="center"><img src="<?php echo SITE_URL?>images/lg.jpg" width="254" height="94" /></td>
    <td width="67%" valign="bottom"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="2%" background="<?php echo SITE_URL?>images/index_r2_c9.jpg"><img src="<?php echo SITE_URL?>images/index_r2_c8.jpg" width="14" height="57" /></td>
        <td width="14%" background="<?php echo SITE_URL?>images/index_r2_c9.jpg"><span class="tit">我&nbsp;&nbsp;&nbsp;&nbsp;搜</span></td>
        <td width="9%" background="<?php echo SITE_URL?>images/index_r2_c9.jpg">
		<select name="type" id="type" class="textinfo">
          <option value="1">景区</option>
          <option value="2">美食</option>
          <option value="3">店铺</option>
        </select></td>
        <td width="59%" background="<?php echo SITE_URL?>images/index_r2_c9.jpg">
			<input id="keywords" name="keywords" type="text" class="textinfo_h" value="请输入关键字" size="40" onclick="this.value=''"/>
		</td>
        <td width="13%" background="<?php echo SITE_URL?>images/index_r2_c9.jpg">
			<img src="<?php echo SITE_URL?>images/index_r3_c18.jpg" width="55" height="29" onclick="search()"/>
		</td>
        <td width="3%" align="right" background="<?php echo SITE_URL?>images/index_r2_c9.jpg"><img src="<?php echo SITE_URL?>images/index_r2_c23.jpg" width="21" height="57" /></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="984" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="<?php echo SITE_URL?>images/index_r6_c2.jpg" width="984" height="9" /></td>
  </tr>
</table>
<table width="984" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="984" background="<?php echo SITE_URL?>images/index_r8_c2.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="2" align="center">
        	<a href="/food/index">
	        	<img src="<?php echo SITE_URL?>images/index_r10_c4.jpg" width="192" height="76" />
        	</a>
        </td>
        <td width="0%" rowspan="12" align="center"><img src="images/tp_r1_c3.jpg" width="2" height="501" /></td>
        <td colspan="2" align="center">
        	<a href="/scene/index">
        		<img src="<?php echo SITE_URL?>images/index_r10_c7.jpg" width="192" height="76" />
        	</a>
        </td>
        <td width="0%" rowspan="12" align="center"><img src="images/tp_r1_c3.jpg" width="2" height="501" /></td>
        <td colspan="2" align="center">
        	<a href="/tong/index">
        		<img src="<?php echo SITE_URL?>images/index_r10_c12.jpg" width="193" height="76" />
        	</a>
        </td>
        <td width="0%" rowspan="12" align="center"><img src="images/tp_r1_c3.jpg" width="2" height="501" /></td>
        <td colspan="2" align="center">
        	<a href="<?php echo SNS_URL?>">
        		<img src="<?php echo SITE_URL?>images/index_r10_c17.jpg" width="192" height="76" />
        	</a>
        </td>
      </tr>
      <tr>
        <td colspan="2" height="280" align="center"><table width="195" height="270" border="0" cellpadding="0" cellspacing="0" class="img">
          <tr>
            <td align="center"><img src="<?php echo SITE_URL?>images/tp_r2_c9.jpg" width="185" height="260" /></td>
          </tr>
        </table></td>
        <td colspan="2" align="center"><table width="195" height="270" border="0" cellpadding="0" cellspacing="0" class="img">
          <tr>
            <td align="center"><img src="<?php echo SITE_URL?>images/tp_r3_c1.jpg" width="185" height="260" /></td>
          </tr>
        </table></td>
        <td colspan="2" align="center"><table width="195" height="270" border="0" cellpadding="0" cellspacing="0" class="img">
          <tr>
            <td align="center"><img src="<?php echo SITE_URL?>images/tp_r3_c5.jpg" width="185" height="260" /></td>
          </tr>
        </table></td>
        <td colspan="2" align="center"><table width="195" height="270" border="0" cellpadding="0" cellspacing="0" class="img">
          <tr>
            <td align="center"><img src="<?php echo SITE_URL?>images/tp_r3_c7.jpg" width="185" height="260" /></td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td width="3%" height="5"></td>
        <td width="22%"  height="5"></td>
        <td colspan="2"></td>
        <td colspan="2"></td>
        <td colspan="2"></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td class="word" height="20">
        	<table cellpadding="0" cellspacing="0">
        		<?php 
        		foreach ($foods as $v):
        			$foodInfo = FoodPeer::retrieveByPK($v->getObjectId());
        			if($foodInfo):
        		?>
        			<tr><td>
        				<a href="/food/intro?id=<?php echo $foodInfo->getId()?>">
        					<span class="word"><?php echo $foodInfo->getName()?></span>
        				</a>
        			</td></tr>
        			<tr><td>&nbsp;</td></tr>
        			<?php endif;?>
        		<?php endforeach;?>
        	</table>
        </td>
        <td width="3%">&nbsp;</td>
        <td width="22%">
	        <table cellpadding="0" cellspacing="0">
	    		<?php 
	    		foreach ($recommScenes as $v):
					$sceneInfo = ScenePeer::retrieveByPK($v->getObjectId());
					if($sceneInfo):
	    		?>
	    			<tr><td>
	    				<a href="/scene/intro?id=<?php echo $sceneInfo->getId()?>">
	    					<span class="word"><?php echo $sceneInfo->getName()?></span>
	    				</a>
	    			</td></tr>
	    			<tr><td>&nbsp;</td></tr>
	    			<?php endif;?>
	    		<?php endforeach;?>
	    	</table>
        </td>
        <td width="3%">&nbsp;</td>
        <td width="22%"><table cellpadding="0" cellspacing="0">
          <?php 
	    		foreach ($hotTopics as $t):
	    		?>
          <tr>
            <td><a href="<?php echo SITE_URL?>tong/topic/tid/<?php echo $t->getTongId();?>/topicid/<?php echo $t->getId();?>"><?php echo $t->getName();?></a></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <?php endforeach;?>
        </table></td>
        <td width="3%">&nbsp;</td>
        <td width="22%"><table cellpadding="0" cellspacing="0">
          <?php 
	    		foreach ($HotDiary as $d):
	    		?>
          <tr>
            <td><a href="<?php echo SITE_URL.'sns/space.php?uid='.$d['uid'].'&do=blog&id=1'.$d['blogid']; ?>"><?php echo $d['subject']; ?></a></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <?php endforeach;?>
        </table></td>
      </tr>
</table>
<table width="984" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="<?php echo SITE_URL?>images/index_r12_c2.jpg" width="984" height="7" /></td>
  </tr>
</table>
<table width="95%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="984" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="642" height="520" valign="top"><table width="633" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="<?php echo SITE_URL?>images/index_r15_c1.jpg" width="633" height="35" /></td>
      </tr>
    </table>
      <table width="633" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td align="center" background="<?php echo SITE_URL?>images/index_r19_c1.jpg"><table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>
          <table width="86%" border="0" cellpadding="0" cellspacing="0" class="textinfo_h">
            <tr>
              <td>
              	<div id="mapObj" class="view" style="width:544px;height:432px"></div> 
				<SCRIPT LANGUAGE="JavaScript">
				  	//设置地图初始化参数对象
				  	var mapOptions = new MMapOptions();
				  	mapOptions.mapId = "fmptest";
				  	mapOptions.zoomLevel = 10;
				  	//设置中心点为北京
				  	mapOptions.center = new MLatLng("KJONOWKMHLL,MRGYNMLHL");
				  	//创建地图对象
				  	var mapObj = new MMap("mapObj", mapOptions);
				
					var points = new Array(); 
				
					var pointStyle = new MStyle(); 
					pointStyle.lineColor = 0xff0000; 
					pointStyle.lineSize = 3; 
					pointStyle.fillColor = 0xddaabb; 
					pointStyle.fillOpacity = 50; 
					pointStyle.labelColor = 0x00ff00; 
					pointStyle.textContent = '';
				
					//循环此部分即可输出多个点.pointStyle.textContent设置的是每个图片在鼠标移上去后显示的详细信息，可以不管.
					<?php
					foreach ($scenes as $key => $v):
					?>
					pointStyle.textContent = "<font color='#ff0000'><?php echo $v->getName()?></font><br><?php echo $v->getDes()?>"; 
					points.push(new MPointOverlay(new MLatLng(<?php echo $v->getXy()?>), "<?php echo $v->getName()?>", pointStyle, "200<?php echo $key+1?>")); 
					<?php endforeach;?>
					
					mapObj.drawPoints(points, true); 
				</script>
              </td>
            </tr>
          </table>
          <table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="633" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><img src="<?php echo SITE_URL?>images/index_r21_c1.jpg" width="633" height="11" /></td>
        </tr>
    </table></td>
    <td width="342" valign="top"><table width="342" height="43" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td background="<?php echo SITE_URL?>images/index_r14_c14.jpg" class="indexdh">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;登录 / 入住</td>
      </tr>
    </table>
      <table width="341" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="9" background="<?php echo SITE_URL?>images/index_r17_c20.jpg"><img src="<?php echo SITE_URL?>images/index_r17_c14.jpg" width="9" height="344" /></td>
          <td width="321" valign="top" background="<?php echo SITE_URL?>images/index_r17_c20.jpg"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="40"><span class="login">用户名：</span>
                <input name="textfield2" type="text" class="textinfo" size="25" /></td>
            </tr>
            <tr>
              <td height="40"><span class="login">密&nbsp; &nbsp;码：</span>
                <input name="textfield22" type="text" class="textinfo" size="25" /></td>
            </tr>
            <tr>
              <td align="center" height="65"><table width="113" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="54" height="28" align="center" background="<?php echo SITE_URL?>img/anniu/an_r5_c7.gif" class="titsmall">登陆</td>
                  <td width="5"></td>
                  <td align="center" background="<?php echo SITE_URL?>img/anniu/an_r5_c7.gif" class="titsmall">逛逛</td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td align="center"><table width="97" height="36" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="center" background="<?php echo SITE_URL?>img/anniu/an_r3_c4.gif" class="tit">入&nbsp;&nbsp;&nbsp;&nbsp;会</td>
                </tr>
              </table></td>
            </tr>
          </table></td>
          <td width="11"><img src="<?php echo SITE_URL?>images/index_r17_c24.jpg" width="10" height="344" /></td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>